package com.ybb.vue.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/**
 * 审核信息表
 * @TableName approval
 */
@TableName(value ="approval")
@Data
public class Approval implements Serializable {
    /**
     * 审核表主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 数据id
     */
    private Long subjectId;

    /**
     * 数据来源
     */
    private String subjectSource;

    /**
     * 审核状态，{0待审核，1通过，2驳回}
     */
    private String approvalStatus;

    /**
     * 审核意见
     */
    private String approvalDetail;

    /**
     * 审批时间
     */
    @JsonSerialize(using=CustomDateTimeSerializer.class)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;

    /**
     * 审批人
     */
    private String approvalBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}